package cn.tpshion.devops.domain.entity;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class TaskWork implements Serializable {

    private static final long serialVersionUID = -7844165087464592636L;

    /**
     * 项目名称
     */
    @NotBlank(message = "项目名称不能为空")
    private String name;

    /**
     * 任务id
     */
    private String taskId;

    /**
     * 节点数据列表
     */
    @NotNull(message = "节点数据不能为空")
    private List<NodeData> nodeDataList;

    /**
     * 流程数据
     */
    @NotBlank(message = "流程数据不能为空")
    private String flowData;

    private long createTime;
}
